@extends('default')
 
@section('title')
  @parent
  流水详情
@stop

@section('content')
    <div class="panel panel-default">
        <div class="panel-heading">{{ $account->title }} - 流水明细</div>
        <div class="panel-body">
            <a href="/addDetail/{{ $account->id }}" class="btn btn-primary">添加流水</a>
        </div>
        <table class="table table-bordered table-striped table-hover">
      <thead>
        <tr>
          <th>时间</th>
          <th>类目</th>
          <th>金额</th>
          <th>备注</th>
        </tr>
      </thead>
      <tbody>
        @foreach ($details as $detail)
        <tr>
          <td>{{ $detail->time }}</td>
          <td>{{ $detail->cat }}</td>
          <td>{{ $detail->amount }}</td>
          <td>{{ $detail->remark }}</td>
        </tr>
        @endforeach
      </tbody>
    </table>
    </div>
    
@stop
